import { createRouter, createWebHistory } from "vue-router";
//导入Home组件
import Home from '../components/home/Home.vue'
//导入Order组件
import Order from '../components/order/Order.vue'
//导入User组件
import User from '../components/user/User.vue'

import City from '../components/city/City.vue'
const routes = [
 {
	 //路由地址为空
	 path:'/',
	 name:'Home',
	 component:Home
	 
 },
 {
	path:'/city',
	name:'City',
	component:City
 },
 {
	 path:'/order',
	 name:'Order',
	 component:Order
 },
 {
	 path:'/user',
	 name:'User',
	 component:User
 }
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
